import request from '@/utils/request'

export function mealList(data) {
  return request({
    url: '/do?c=411008',
    method: 'post',
    data: data
  })
}
export function mealOrderList(data) {
  return request({
    url: '/do?c=411010',
    method: 'post',
    data: data
  })
}
export function mealInfo(data) {
  return request({
    url: '/do?c=411009',
    method: 'post',
    data: data
  })
}

export function mealPayInfo(data) {
  return request({
    url: '/do?c=411017',
    method: 'post',
    data: data
  })
}

export function mealCancel(data) {
  return request({
    url: '/do?c=411020',
    method: 'post',
    data: data
  })
}

export function mealRefund(data) {
  return request({
    url: '/do?c=411022',
    method: 'post',
    data: data
  })
}

export function mealDiscount(data) {
  return request({
    url: '/do?c=411007',
    method: 'post',
    data
  })
}

export function mealSearch(data) {
  return request({
    url: '/do?c=411008',
    method: 'post',
    data
  })
}

// 根据会员id查询可转让套餐
export function findTransferMeals(data) {
  return request({
    url: '/do?c=411025',
    method: 'post',
    data
  })
}

// 套餐转让
export function transferMeals(data) {
  return request({
    url: '/do?c=411026',
    method: 'post',
    data
  })
}

// 套餐转让列表
export function transferMealsList(data) {
  return request({
    url: '/do?c=411027',
    method: 'post',
    data
  })
}
// 批量导入会员套餐
export function importPackage(data) {
  return request({
    url: '/do?c=411032',
    method: 'post',
    data
  })
}
// 获取批量导入会员套餐模板
export function importMoudle(data) {
  return request({
    url: '/do?c=411033',
    method: 'post',
    data
  })
}
// 获取套餐使用情况
export function comboSalesRecordPost(data) {
  return request({
    url: '/do?c=411035',
    method: 'post',
    data
  })
}
// 获取套餐使用情况
export function comboDetailPost(data) {
  return request({
    url: '/do?c=411036',
    method: 'post',
    data
  })
}
// 冻结 解冻 作废
export function handleComboSalesPost(data) {
  return request({
    url: '/do?c=411037',
    method: 'post',
    data
  })
}
// 套餐销售明细 导出
export function recordExport(data) {
  return request({
    url: '/do?c=411042',
    method: 'post',
    data
  })
}
// 套餐明细 退订详情
export function comboRefundDetail(data) {
  return request({
    url: '/do?c=411041',
    method: 'post',
    data
  })
}
// 套餐明细 退款
export function comboRefund(data) {
  return request({
    url: '/do?c=411040',
    method: 'post',
    data
  })
}
// 套餐明细 退款价格查询
export function comboRefundPrice(data) {
  return request({
    url: '/do?c=411045',
    method: 'post',
    data
  })
}
// 套餐订单 导出
export function mealOrderExport(data) {
  return request({
    url: '/do?c=411044',
    method: 'post',
    data
  })
}
// 套餐订单详情
export function mealOrderDetial(data) {
  return request({
    url: '/do?c=411041',
    method: 'post',
    data
  })
}
